package com.ruoyi.project.student.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.student.domain.Class;
import com.ruoyi.project.student.mapper.ClassMapper;
import com.ruoyi.project.student.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class> implements ClassService {

    @Autowired
    public ClassMapper classMapper;

    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<Class> selectClass(Class classParam)
    {
        LambdaQueryWrapper<Class> wrapper = new LambdaQueryWrapper();
        wrapper.like(classParam.getName() != null, Class::getName, classParam.getName());
        
        return result;
    }
}
